package demo2;
//完成接口的认识--U，主函数
public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.powerOn();//打开电脑
        //使用USB
        computer.useDevice(new Mouse());
        System.out.println("---------");
        computer.useDevice(new KeyBorad());

        computer.poweroff();//关闭电脑
    }

}
